calculation of interest on capital